package cn.home.fenni.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.fenni.mapper.HomeMedicineTixingMapper;
import cn.home.fenni.domain.HomeMedicineTixing;
import cn.home.fenni.service.IHomeMedicineTixingService;

/**
 * tixingService业务层处理
 * 
 * @author gm
 * @date 2025-04-14
 */
@Service
public class HomeMedicineTixingServiceImpl implements IHomeMedicineTixingService 
{
    @Autowired
    private HomeMedicineTixingMapper homeMedicineTixingMapper;

    /**
     * 查询tixing
     * 
     * @param id tixing主键
     * @return tixing
     */
    @Override
    public HomeMedicineTixing selectHomeMedicineTixingById(Long id)
    {
        return homeMedicineTixingMapper.selectHomeMedicineTixingById(id);
    }

    /**
     * 查询tixing列表
     * 
     * @param homeMedicineTixing tixing
     * @return tixing
     */
    @Override
    public List<HomeMedicineTixing> selectHomeMedicineTixingList(HomeMedicineTixing homeMedicineTixing)
    {
        return homeMedicineTixingMapper.selectHomeMedicineTixingList(homeMedicineTixing);
    }

    /**
     * 新增tixing
     * 
     * @param homeMedicineTixing tixing
     * @return 结果
     */
    @Override
    public int insertHomeMedicineTixing(HomeMedicineTixing homeMedicineTixing)
    {
        return homeMedicineTixingMapper.insertHomeMedicineTixing(homeMedicineTixing);
    }

    /**
     * 修改tixing
     * 
     * @param homeMedicineTixing tixing
     * @return 结果
     */
    @Override
    public int updateHomeMedicineTixing(HomeMedicineTixing homeMedicineTixing)
    {
        return homeMedicineTixingMapper.updateHomeMedicineTixing(homeMedicineTixing);
    }

    /**
     * 批量删除tixing
     * 
     * @param ids 需要删除的tixing主键
     * @return 结果
     */
    @Override
    public int deleteHomeMedicineTixingByIds(Long[] ids)
    {
        return homeMedicineTixingMapper.deleteHomeMedicineTixingByIds(ids);
    }

    /**
     * 删除tixing信息
     * 
     * @param id tixing主键
     * @return 结果
     */
    @Override
    public int deleteHomeMedicineTixingById(Long id)
    {
        return homeMedicineTixingMapper.deleteHomeMedicineTixingById(id);
    }
}
